package grouplife::Schema::Result::CommentedItem;

# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE

use strict;
use warnings;

use Moose;
use MooseX::NonMoose;
use namespace::autoclean;
extends 'DBIx::Class::Core';

__PACKAGE__->load_components(qw( TimeStamp Core ));
=head1 NAME

grouplife::Schema::Result::User

=cut

__PACKAGE__->table("commented_item");

=head1 ACCESSORS

=head2 id

  data_type: 'integer'
  is_nullable: 0

=head2 username

  data_type: 'text'
  is_nullable: 1

=head2 password

  data_type: 'text'
  is_nullable: 1

=head2 email_address

  data_type: 'text'
  is_nullable: 1

=head2 first_name

  data_type: 'text'
  is_nullable: 1

=head2 photo

  data_type: 'text'
  is_nullable: 1

=head2 last_name

  data_type: 'text'
  is_nullable: 1

=head2 active

  data_type: 'integer'
  is_nullable: 1

=cut

__PACKAGE__->add_columns(
		"id",
		{ data_type => "integer", is_nullable => 0 },
		"comm_item_type_id",
		{ data_type => "integer", is_nullable => 1 },
		"created",
                { data_type => 'datetime', timezone => "Asia/Shanghai", set_on_create => 1 },
                "updated",
                { data_type => 'datetime', timezone => "Asia/Shanghai", set_on_create => 1, set_on_update => 1 }
);

__PACKAGE__->has_many(
                "comments",
                "grouplife::Schema::Result::Comment",
                { "foreign.comm_item_id" => "self.id" },
                );

__PACKAGE__->set_primary_key("id");


# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;
